Relative minimum and relative maximum worked out solution